macos: add more aggressive clip to transparent subview
authorChristian Hergert <chergert@redhat.com>
Fri, 30 Oct 2020 02:37:27 +0000 (19:37 -0700)
committerChristian Hergert <chergert@redhat.com>
Fri, 30 Oct 2020 02:41:21 +0000 (19:41 -0700)
commitd8192013f3ee1eda0bb9de793acd64b4ef84c1ff
tree1c8510fa083e8b38bc9ab2a891b738a0dad2c4cd
parent8ed1f51f7f8a7e05a6ccfdd7c41faafadb3b1e23
macos: add more aggressive clip to transparent subview

The Cairo implementation for the Macos backend uses a toplevel
window with full transparency and a series of NSView to create opaque
regions. This improves compositor performance because it allows the
display server to avoid costly blends.

However, we want to ensure we clip better when exposing the
transparent region so that we only expose the shadows/corners as
necessary.
gdk/macos/GdkMacosCairoSubview.c
gdk/macos/GdkMacosCairoSubview.h
gdk/macos/GdkMacosCairoView.c